package com.devbobcorn.donutopia.items;

import javax.annotation.Nonnull;

import com.google.common.base.Supplier;

import net.minecraft.item.ItemGroup;
import net.minecraft.item.ItemStack;

public class ModItemTab {
    public static final ItemGroup DONUTOPIA_GROUP = new ModItemGroup("donutopia", () -> {
            ItemStack icoStack = new ItemStack(ModItems.SAKURA.get());
            return icoStack;
        }
    );

	public static final class ModItemGroup extends ItemGroup {
		@Nonnull
		private final Supplier<ItemStack> iconSupplier;

		public ModItemGroup(@Nonnull final String name, @Nonnull final Supplier<ItemStack> iconSupplier) {
			super(name);
			this.iconSupplier = iconSupplier;
		}

		@Override
		@Nonnull
		public ItemStack makeIcon() {
			return iconSupplier.get();
		}
	}
}
